import request from "@/utils/request";

// 获取列表
export function getAllList(query) {
  return request({
    url: "/heaManage/getPage/"+query.id,
    method: "get",
    params: query,
  });
}

// 保存
export function saveData(data) {
  return request({
    url: "/heaManage/save",
    method: "post",
    data:data
  });
}

// 修改
export function updateData(data) {
  return request({
    url: "/heaManage/update",
    method: "post",
    data:data
  });
}

// 查看
export function getDetail(id) {
  return request({
    url: "/heaManage/findById",
    method: "get",
    params:id
  });
}

// 获取地震指挥部信息编号
export function getHeadCode(code) {
  return request({
    url: "/heaManage/getHeadInfo",
    method: "get",
    params:code
  });
}

//删除
export function del(id) {
  return request({
    url: "/heaManage/delete/" + id,
    method: "post",
  });
}

// 获取现场人员信息
export function getAllList1(query) {
  return request({
    url: "/personnelManagement/getPage/",
    method: "get",
    params:query
  });
}